def biz_default_delete_all_record(self, delete_flag=True):
    # pass
    logging.info("开始删除所有记录")
    deleteflag = 0
    while True:
        if deleteflag == 0:
            # 每次查询10000条数据，如果不足10000查出来多少算多少，不区分抓拍和告警
            res = self.biz_default_record_query(request_data={"applet_record_type": [],
                                                              "page": {
                                                                  "offset": 0,
                                                                  "limit": 10000,
                                                                  "total": 10000
                                                              }})
            # 每次把查出来这1W条数据（不足1W有多少算多少）存在ids这个列表里
            ids = [r["id"] for r in res.json_get("data")]
            # 把要删除的记录放在ids里，调用删除接口删除
            self.biz_default_record_delete(delete_list=ids)
            # 删除之后再次查询，
            res = self.biz_default_record_query(request_data={"applet_record_type": [],
                                                              "page": {
                                                                  "offset": 0,
                                                                  "limit": 10000,
                                                                  "total": 10000
                                                              }})
            ids = [r["id"] for r in res.json_get("data")]
            if len(ids) == 0:
                deleteflag = 1
                break
            # 如果len(ids)!= 0，则说明还有记录，继续删除,进入while循环,
            else:
                continue
        else:
            break